package com.shop.dingdongshoppingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * ⽤户⽇志表(TUserLog)实体类
 *
 * @author makejava
 * @since 2022-06-29 17:41:52
 */
@Data
@NoArgsConstructor
@TableName(value = "t_user_log")
public class UserLog implements Serializable {
    private static final long serialVersionUID = 152797027463742366L;
    /**
     * 序号
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * ⽤户id
     */
    private Integer uid;
    /**
     * 类型
     */
    private Integer type;
    /**
     * 内容
     */
    private String info;
    /**
     * 设备
     */
    private String mobie;
    /**
     * 地点
     */
    private String city;
    /**
     * 时间
     */
    private Date ctime;

    public UserLog(Integer uid, Integer type, String info, String mobie, String city) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.mobie = mobie;
        this.city = city;
        this.ctime = new Date();
    }
}

